#ifndef MYCAMERAWINDOW_H_
#define MYCAMERAWINDOW_H_

#include <QWidget>
#include <QVBoxLayout>

#include "QOpenCVWidget.h"
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <iostream>

//String face_cascade_name = "/usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml";
//String eyes_cascade_name = "/usr/share/opencv/haarcascades/haarcascade_eye_tree_eyeglasses.xml";

class MyCameraWindow : public QWidget
{
    Q_OBJECT
    private:

        QOpenCVWidget *cvwidget;
        CvCapture *camera;
        Mat *frame;




        
    public:

        QPushButton *Button_saveBill;
        QLabel *Lable_save_bill;
        static const int Label_witdh=200;
        static const int Button_witdh=200;
        static const int Button_height=50;


        MyCameraWindow(CvCapture *cam, QWidget *parent=0);
         
    protected:
        void timerEvent(QTimerEvent*);
    public slots:
        void save_bill();
};


#endif /*MYCAMERAWINDOW_H_*/
